﻿using System;

namespace SuckerPunch.Presenters
{
    class MainPresenter
    {
        private Main _view;

        public MainPresenter(Main mainView)
        {
            _view = mainView;
            WireView();
        }

        private void WireView()
        {
            _view.SettingsButton.Click += new EventHandler(SettingsButton_Click);
        }

        void SettingsButton_Click(object sender, EventArgs e)
        {
            Settings settingsForm = new Settings();
            SettingsPresenter settingsPresenter = new SettingsPresenter(settingsForm);
            settingsForm.ShowDialog();
        }
    }
}
